﻿using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
using KinonekoSoftware.ArkSpark.Core;
using KinonekoSoftware.ArkSpark.Helpers;
using KinonekoSoftware.CodariaDB.Documents;
using KinonekoSoftware.Extensions.Ioc;
using KinonekoSoftware.Foundation.UI;
using KinonekoSoftware.Foundation.UI.Core;
using KinonekoSoftware.Studio.Components;
using KinonekoSoftware.Studio.ViewModels;

namespace KinonekoSoftware.Studio
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow 
    {
        public MainWindow()
        {
            InitializeComponent();
        }

        protected override void OnLoaded()
        {
            var vm      = Ioc.Get<AppViewModel>();
            var ds      = Ioc.Get<IDialogServiceAmbient>();


            //
            //
            ds.SetHost(DialogHost);
            vm.SetHost(ContentHost);
            
            
            
            
            //
            //
            base.OnLoaded();
        }
    }
}